import request from '@/utils/request'

// 查询residential_buildings列表
export function listResidentialBuildings(query) {
  return request({
    url: '/system/residentialBuildings/list',
    method: 'get',
    params: query
  })
}

// 查询residential_buildings详细
export function getResidentialBuildings(id) {
  return request({
    url: '/system/residentialBuildings/' + id,
    method: 'get'
  })
}

// 新增residential_buildings
export function addResidentialBuildings(data) {
  return request({
    url: '/system/residentialBuildings',
    method: 'post',
    data: data
  })
}

// 修改residential_buildings
export function updateResidentialBuildings(data) {
  return request({
    url: '/system/residentialBuildings',
    method: 'put',
    data: data
  })
}

// 删除residential_buildings
export function delResidentialBuildings(id) {
  return request({
    url: '/system/residentialBuildings/' + id,
    method: 'delete'
  })
}
